home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / spu.com / SPU.H < prev   
Encoding:
C/C++ Source or Header  |  1989-06-02  |  5.0 KB  |  108 lines

  1. #define HPLJ2                /* define which printer codes to use   */
  2.  
  3. /*
  4. **==========================================================================
  5. **           P R I N T E R   C O N T R O L   S E Q U E N C E S
  6. **==========================================================================
  7. */
  8.  
  9. /*
  10. **   -----------------------
  11. **    H P   L A S E R J E T 
  12. **   -----------------------
  13. */
  14. #ifdef HPLJ
  15.  
  16. #define LPP       57                   /* Lines Per Page                */
  17. #define HMW       176                  /* Header Maximum Width          */
  18. #define PNAME     "HPLJ (landscape)"   /* printer description           */
  19. #define SEPCHAR   '|'                  /* separates line #'s from text  */
  20. #define TMW       176                  /* Text Maximum Width            */
  21.  
  22. char HDRFONT[]  = {0x1B, 0x26, 0x6B, 0x32, 0x53, 0x00};  /* lineprinter font  */
  23. char NO_ULINE[] = {0x1B, 0x26, 0x64, 0x40, 0x00};        /* underline off     */
  24. char RESET[]    = {0x1B, 0x45, 0x00};                    /* reset printer     */
  25. char SETUP[]    = {0x1B, 0x26, 0x6C, 0x31, 0x4F,         /* landscape         */
  26.                    0x1B, 0x26, 0x6C, 0x38, 0x44, 0x00};  /* 8 lines per inch  */
  27. char TXTFONT[]  = {0x1B, 0x26, 0x6B, 0x32, 0x53, 0x00};  /* lineprinter font  */
  28. char ULINE[]    = {0x1B, 0x26, 0x64, 0x44, 0x00};        /* underline on      */
  29.  
  30. #endif  /* HPLJ */
  31.  
  32.  
  33. /*
  34. **   -------------------------------------------------------------
  35. **    H P   L A S E R J E T   S E R I E S   I I   P O R T R A I T
  36. **   -------------------------------------------------------------
  37. */
  38. #ifdef HPLJ2
  39.  
  40. #define LPP       77                   /* Lines Per Page                */
  41. #define HMW       80                   /* Header Maximum Width          */
  42. #define PNAME     "HPLJ II (portrait)" /* printer description           */
  43. #define SEPCHAR   '│'                  /* separates line #'s from text  */
  44. #define TMW       132                  /* Text Maximum Width            */
  45.  
  46. char HDRFONT[]  = {0x1B, 0x28, 0x73, 0x33, 0x54,         /* courier font      */
  47.                    0x1B, 0x26, 0x6B, 0x30, 0x53, 0x00};  /* 10 pitch          */
  48. char NO_ULINE[] = {0x1B, 0x26, 0x64, 0x40, 0x00};        /* underline off     */
  49. char RESET[]    = {0x1B, 0x45, 0x00};                    /* reset printer     */
  50. char SETUP[]    = {0x1B, 0x28, 0x31, 0x30, 0x55,         /* IBM PC char set   */
  51.                    0x1B, 0x26, 0x6C, 0x38, 0x44, 0x00};  /* 8 lines per inch  */
  52. char TXTFONT[]  = {0x1B, 0x26, 0x6B, 0x32, 0x53, 0x00};  /* lineprinter font  */
  53. char ULINE[]    = {0x1B, 0x26, 0x64, 0x44, 0x00};        /* underline on      */
  54.  
  55. #endif  /* HPLJ2 */
  56.  
  57. /*
  58. **   ---------------------------------------------------------------
  59. **    H P   L A S E R J E T   S E R I E S   I I   L A N D S C A P E
  60. **   ---------------------------------------------------------------
  61. */
  62. #ifdef HPLJ2L
  63.  
  64. #define LPP       57                   /* Lines Per Page                */   
  65. #define HMW       106                  /* Header Maximum Width          */   
  66. #define PNAME     "HPLJ II (landscape)"/* printer description           */
  67. #define SEPCHAR   '│'                  /* separates line #'s from text  */   
  68. #define TMW       176                  /* Text Maximum Width            */   
  69.  
  70. char HDRFONT[]  = {0x1B, 0x28, 0x73, 0x33, 0x54,         /* courier font      */
  71.                    0x1B, 0x26, 0x6B, 0x30, 0x53, 0x00};  /* 10 pitch          */
  72. char NO_ULINE[] = {0x1B, 0x26, 0x64, 0x40, 0x00};        /* underline off     */
  73. char RESET[]    = {0x1B, 0x45, 0x00};                    /* reset printer     */
  74. char SETUP[]    = {0x1B, 0x28, 0x31, 0x30, 0x55,         /* IBM PC char set   */
  75.                    0x1B, 0x26, 0x6C, 0x31, 0x4F,         /* landscape         */
  76.                    0x1B, 0x26, 0x6C, 0x38, 0x44, 0x00};  /* 8 lines per inch  */
  77. char TXTFONT[]  = {0x1B, 0x26, 0x6B, 0x32, 0x53, 0x00};  /* lineprinter font  */
  78. char ULINE[]    = {0x1B, 0x26, 0x64, 0x44, 0x00};        /* underline on      */
  79.  
  80. #endif  /* HPLJ2L */
  81.  
  82.  
  83. /*
  84. **   -----------------------------
  85. **    I B M   P R O P R I N T E R
  86. **   -----------------------------
  87. */
  88. #ifdef IBMPRO
  89.  
  90. #define LPP       60                   /* Lines Per Page                */
  91. #define HMW       80                   /* Header Maximum Width          */
  92. #define PNAME     "IBM Proprinter"     /* printer description           */
  93. #define SEPCHAR   '│'                  /* separates line #'s from text  */
  94. #define TMW       130                  /* Text Maximum Width            */
  95.  
  96. char HDRFONT[]  = {0x1B, 0x12, 0x00};        /* 10 cpi*/
  97. char NO_ULINE[] = {0x1B, 0x2D, 0x30, 0x00};  /* underline off  */
  98. char RESET[]    = {0x1B, 0x12,               /* 10 cpi         */
  99.                    0x1B, 0x18, 0x00};        /* cancel data    */
  100. char SETUP[]    = {0x00};                    /* you might want NLQ here */
  101. char TXTFONT[]  = {0x1B, 0x0F,               /* condensed print*/
  102.                    0x1B, 0x3A, 0x00};        /* 12 cpi         */
  103. char ULINE[]    = {0x1B, 0x2D, 0x01, 0x00};  /* underline on   */
  104.  
  105. #endif  /* IBMPRO */
  106.  
  107.  
  108.